﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="WebApplication1.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        
        <div>
            <table>
                <tr>
                    <td>姓名：</td>
                    <td>
                        <asp:TextBox ID="tbxName" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="btnQuery" OnClick="btnQuery_Click" runat="server" Text="查询" />
                    </td>
                    <td></td>                    
                </tr>
            </table>
        </div>
        <div>
            <asp:GridView ID="GVStudnet" runat="server" AutoGenerateColumns="False" Height="155px" Width="1000px" OnRowEditing="GVStudnet_RowEditing" OnRowCancelingEdit="GVStudnet_RowCancelingEdit" OnRowUpdating="GVStudnet_RowUpdating" OnRowDeleting="GVStudnet_RowDeleting">
                <Columns>
                    <asp:BoundField DataField="stu_name" HeaderText="姓名" />
                    <asp:BoundField DataField="email" HeaderText="邮箱" />
                    <asp:BoundField DataField="intro" HeaderText="介绍" />
                    <asp:BoundField DataField="password" HeaderText="密码" />
                    <asp:CommandField HeaderText="编辑" ShowEditButton="True" ShowHeader="True" />
                    <asp:CommandField HeaderText="删除" ShowDeleteButton="True" ShowHeader="True" />
                </Columns>
            </asp:GridView>
        </div>
        <a href="AddStudent.aspx">添加学生</a>
    </form>
</body>
</html>
